<template>
	<view>
		<custom-nav-sq-xcx :isBack="true" :hasFixedFlag="hasFixedFlag" conCol="#000" bgColor="sqGk">
			<block slot="content">社区概况</block>
		</custom-nav-sq-xcx>
		<image class="sqCover" :src="getStaticFilePath('shequToolBg.png')"></image>
		<view class="sqGk">
			<view class="gkModTit sqjj">
				<image class="modImg" :src="getStaticFilePath('sqjj.png')"></image>
				<view class="tit">社区简介</view>
			</view>
			<view class="gkCon">反倒是附近规范的路过看见的反倒是交流看法家广泛的交流过KDJ管理费发的时间浪费口水健康方法</view>
			<view class="gkModTit">
				<view class="iconfont icon-sqLxwm"></view>
				<view class="tit">联系我们</view>
			</view>
			<view class="gkCon hasPadd">
				<view class="paddItem">联系人：李思思</view>
				<view class="paddItem">联系电话：152352336256</view>
			</view>
			<view class="gkModTit spaceBet">
				<view class="hasFlex alignCen">
					<view class="iconfont icon-rycg"></view>
					<view class="tit">荣誉成果</view>
				</view>
				<view class="iconfont icon-gengduo"></view>
			</view>
			<view class="gkCon">
				<honor-list></honor-list>
			</view>
			<view class="gkModTit">
				<view class="iconfont icon-zzjg"></view>
				<view class="tit">组织架构</view>
			</view>
			<view class="gkCon">
				<honor-list currType="zjjg"></honor-list>
			</view>
			<view class="gkModTit spaceBet" @tap="goMorePlan">
				<view class="hasFlex alignCen">
					<view class="iconfont icon-ghjh"></view>
					<view class="tit">规划计划</view>
				</view>
				<view class="iconfont icon-gengduo"></view>
			</view>
			<view class="gkCon smMargB">
				<gh-plan></gh-plan>
			</view>
		</view>
	</view>
</template>

<script>
	import HonorList from './components/HonorList'
	import GhPlan from './components/GhPlan'
	export default {
		components:{
			HonorList,
			GhPlan
		},
		data(){
			return{
				courseTop:0,
				hasFixedFlag:false
			}
		},
		onLoad(){
			uni.createSelectorQuery().select('.sqjj').boundingClientRect(data => {
				this.courseTop = data.top;
			}).exec()
		},
		onPageScroll: function(e) {
			const { scrollTop } = e;
			if(scrollTop >= this.courseTop){
				this.hasFixedFlag = true;
			}else{
				this.hasFixedFlag = false;
			}
		},
		methods:{
			
		}
	}
</script>

<style src="@/static/fonts/hxbnst.css"></style>
<style lang="scss" scoped>
	$font:'Staatliches';
	.sqCover{
		width: 100%;
		height: 720rpx;
	}
	.sqGk{
		background: $sq-fuf;
		border-radius: 30rpx 30rpx 0 0;
		padding: 30rpx;
		position: relative;
		z-index: 2;
		margin-top: -80rpx;
		.gkModTit{
			display: flex;
			align-items: center;
			font-size: 32rpx;
			color: #8C70F7;
			margin-bottom: 20rpx ;
			.tit{
				font-family: 'hxbnst';
			}
			.modImg{
				width: 60rpx;
				height: 60rpx;
				margin-right: 10rpx;
			}
			.iconfont{
				font-size: 50rpx;
				margin-right: 15rpx;
				&.icon-gengduo{
					font-size: 26rpx;
					height: 50rpx;
					line-height: 50rpx;
					padding-left: 50rpx;
				}
			}
		}
		.gkCon{
			font-size: 28rpx;
			color: $sq-main0;
			margin-bottom: 40rpx ;
			.paddItem{
				margin-bottom: 20rpx;
				&:last-child{
					margin-bottom: 0;
				}
			}
			&.hasPadd{
				background: $sq-fue;
				padding: 30rpx;
				border-radius: 16rpx;
			}
			&.smMargB{
				margin-bottom: 0;
			}
		}
	}
</style>